package com.ssd;

import com.ssd.mixly.service.IMqttService;
import com.ssd.mixly.service.impl.MqttServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
@EnableFeignClients
@Slf4j
@EnableDiscoveryClient
public class SsdVendingMachineServiceApplication {

    public static void main(String[] args) {
        ApplicationContext context =SpringApplication.run(SsdVendingMachineServiceApplication.class, args);
        System.out.println("售货机模块启动成功！");
        String[] topic = {"pay"};
        IMqttService mqttService = new MqttServiceImpl(topic,context);
    }

}
